Versions:
literalizer-cli is a cross-platform command-line utility created by Adam Dangoor that transforms arbitrary data structures into clean, ready-to-paste literal syntax for Python, Rust, and Go source code. Released in its current build 2026.03.25 as the second public iteration, the tool accepts JSON, YAML, TOML, or plain-text tabular input and emits the corresponding native declarations—dictionaries and lists for Python, structs and slices for Rust, maps and slices for Go—freeing developers from manual translation when mocking test data, serializing configuration examples, or migrating snippets between languages. Typical use cases include populating unit tests with large payloads, generating static fixtures for documentation, bootstrapping language-specific examples from neutral JSON, and quickly scaffolding structures that mirror REST responses or database dumps. Because the conversion is deterministic and local, literalizer-cli fits naturally into CI pipelines that need to keep sample code in sync with evolving schemas, and its lightweight design makes it equally suited to one-off conversion tasks on a developer workstation. The program operates through a single executable invoked with input filename, target language flag, and optional indentation settings, streaming the resulting literals to stdout for redirection into source files or further scripting. By focusing exclusively on the literal-generation niche, the utility complements rather than replaces full-format serializers, providing a fast, opinion-free way to move data from interchange formats straight into compilable code. literalizer-cli is available for free on get.nero.com, with downloads provided via trusted Windows package sources (e.g. winget), always delivering the latest version, and supporting batch installation of multiple applications.
Tags: